package com.example.cloud.model.business.medical;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.cloud.model.common.CommonModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by ygl on 2017/4/9.
 * 生活护理建议
 */
@Entity(name = "life_care_advice")
@Data
public class LifeCareAdvice extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "patient_id")
    private Long patientId;
    // 主诉ID
    @Column(name = "complaint_id")
    private Long complaintId;

    @Column(name = "doctor_suggest_id")
    private String doctorSuggestId;

    @Column(name = "supplement_advice")
    private String supplementAdvice;

    @JSONField(serialize = false)
    @Column(name="account_id")
    private Long accountId;
}
